will throw an error during 'make' of the test suite. This fixes the problem.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
vmconfigfile = "/tmp/xm-test.conf"
testresource = "phy:ram0"
+if not isACMEnabled():
+ SKIP("Not running this test since ACM not enabled.")
+
status, output = traceCommand("xm makepolicy %s" % (testpolicy))
if status != 0 or output != "":
FAIL("'xm makepolicy' failed with status %d and output\n%s" %
%.test: %.py
cp $< $@
chmod +x $@
- @cp -f xm-test-security_policy.xml /etc/xen/acm-security/policies
+ @if [ -d /etc/xen/acm-security/policies ]; then \
+ cp -f xm-test-security_policy.xml \
+ /etc/xen/acm-security/policies; \
+ fi;
clean-local: am_config_clean-local